
'''
with open('C:/Users/Administrator/Desktop/微信开发用的技术介绍.txt', 'a') as f:
    f.write('hello, world!\r\n')

'''
import os
print(os.name)
print(os.path.abspath('.'))

dir = os.path.join('D:/Users/Administrator/PycharmProjects/dataAnalysis','testdir')

# os.mkdir(dir)

# os.rmdir(dir)

s = os.path.splitext('/path/to/file.txt')
print(s)

